/*
 * Created on Nov 17, 2003
 */
 
package com.unash.asn;

/**
 * @author Ashwini Gokhale
 */

public class AsnInteger {
	private final int value;
	
	public AsnInteger(int _value){
		value = _value;
	}//AsnInteger
	
	
	public boolean equals(Object obj){
		if(!(obj instanceof AsnInteger))
			return false;
		AsnInteger objAsnInteger = (AsnInteger)obj;
		return (this.getValue() == objAsnInteger.getValue());
	}//equals
	
	
	public int hashCode(){
		int result = 17;
		result = 37 * result + this.getValue();
		return (result);
	}//hashCode
	
	
	public String toString(){
		return Integer.toString(this.getValue());
	}//toString
	
	
	public int getInt() {
		return getValue();
	}//getInt


	int getValue() {
		return value;
	}	
}//AsnInteger